package com.ymatou.iapi.csim.service;

import com.ymatou.iapi.csim.parameter.GetAllQuestionGuideResp;
import com.ymatou.iapi.csim.parameter.GetHistorySessionListResp;
import com.ymt.base.YmatouBaseCall;
import com.ymt.core.tool.FormatUtil;
import com.ymttest.utils.DataUtil;
import com.ymttest.utils.EnvSetup;
/**
*获取所有的问题向导Call
*FreeMaker Template自动生成代码
*/
public class GetAllQuestionGuideCall extends YmatouBaseCall{
	private static String opurl ="api/QuestionGuide/GetAllQuestionGuide";
	
	public GetAllQuestionGuideCall() {
		super(EnvSetup.getSystemUrl("csim_iapi"),opurl,"GET","PARAM");
	}
	@Override
	public void addDefHeader() {
		client.addHeader("Accept","text/xml,text/javascript,text/html,application/json");
	//	client.addHeader("Content-Type", "application/json; charset=UTF-8");
	}
	
	
	public GetAllQuestionGuideResp GetAllQuestionGuide()
    {
		GetAllQuestionGuideResp data = null;
        try {
         data = (GetAllQuestionGuideResp) FormatUtil.GSONToObject(DataUtil.Json.parseJsonObj(this.getReturnData()).toString(), 
        		 GetAllQuestionGuideResp.class);

        } catch (Exception e) {
            e.printStackTrace();
        }
        return data;
    }
}